<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page session="false" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Add Supplier</title>

</head>

<body>
<h1>Add Supplier</h1>
<c:url var="viewSuppliersUrl" value="/suppliers/list.html" />
<a href="${viewSuppliersUrl}">View Existing Suppliers</a>

<br /><br />

<c:url var="saveSupplierUrl" value="/suppliers/save.html" />

<form:form modelAttribute="supplier" method="POST" action="${saveSupplierUrl}">
    <form:label path="name">Supplier Name:</form:label>
    <form:input path="name"/><br />
    <form:label path="contact">contact:</form:label>
    <form:input path="contact"/><br />
    <form:label path="email">email:</form:label>
    <form:input path="email"/><br />
    <form:label path="description">Supplier Description:</form:label>
    <form:input path="description"/><br />

    <input type="submit" value="Save Supplier" />
</form:form>

</body>
</html>